package com.hqyj.controller;

import com.hqyj.pojo.User;
import com.hqyj.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;


@RestController
@RequestMapping("/userReful")
public class UserRefulController {

    @Autowired
    UserService userService;
    //登录
    @RequestMapping("/login")
    public HashMap<String, String> login(User user){

        return  userService.login(user);
    }
}
